import request from '@/utils/request'

// 通过主键查询
export function getCouncilByKey(params) {
	return request({
		url: '/expertCommittee/getByKey/noAuth',
		method: 'get',
		params: params
	})
}

// 获取列表数据
export function getCouncilPage(params) {
	return request({
		url: '/expertCommittee/getPage/noAuth',
		method: 'get',
		params: params
	})
}

// 添加
export function addCouncil(data) {
	return request({
		url: '/expertCommittee/add',
		method: 'post',
		data: data
	})
}

// 通过主键修改
export function updCouncil(data) {
	return request({
		url: '/expertCommittee/upd',
		method: 'post',
		data: data
	})
}

// 通过主键删除
export function delCouncil(data) {
	return request({
		url: '/expertCommittee/del',
		method: 'post',
		data: data
	})
}
